import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { MDXComponent, getCompiledMdx } from "@mintlify/mdx";
export const getStaticProps = (async () => {
    const fileContentResponse = await fetch("https://raw.githubusercontent.com/mintlify/starter/main/essentials/code.mdx");
    const fileContentData = await fileContentResponse.text();
    const mdxSource = await getCompiledMdx({
        source: fileContentData,
    });
    return {
        props: {
            mdxSource,
        },
    };
});
export default function Home({ mdxSource, }) {
    return (_jsxs("article", { className: "prose mx-auto py-8", children: [_jsx("h1", { children: String(mdxSource.frontmatter.title) }), _jsx(MDXComponent, { ...mdxSource })] }));
}
